package com.example.gzysmartcity.viewmodel;

import androidx.lifecycle.ViewModel;

import com.example.gzysmartcity.repository.local.OpinionDB;
import com.example.gzysmartcity.repository.model.Opinion;

import java.util.List;

public class HistoryViewModel extends ViewModel {


    public List<Opinion> getAllData() {
        return OpinionDB.loadAll();
    }

    public void insertOpinion(Opinion o) {
        OpinionDB.insert(o);
    }
}
